<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
    var shuXue = prompt('数学：');
    var tiYu = prompt('体育：');
    if(shuXue>90 && tiYu>80 || shuXue==100 && tiYu>70){
        alert('获得奖励');
    }
    else{
        alert('惩罚一边跑步一边背诵笔记');

    }
</script>
</body>
</html>